package com.xyy.saas.payment.config;

import com.xyy.saas.payment.service.job.OrderJobService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ManageApplicationListener implements ApplicationRunner {
    @Autowired
    private OrderJobService orderJobService;

    @Override
    public void run(ApplicationArguments args) {
        log.info("项目启动，执行ManageApplicationListener");
        orderJobService.syncPayAmountDictData();
    }

}
